﻿@model ViewModels.Career._NeedHelpItemModel
@{
    string salutation = Model.Gender ? "先生" : "女士";
    TimeSpan timeDifference = Model.To - Model.From;
    int totalDays = (int)timeDifference.TotalDays;
}
<div>
    <hr />
    <div>
        在 <a class="badge badge-primary">@Model.Province-@Model.City</a>
    </div>
    <div class="pl-3">
        从：<span>@Model.From.ToString("yyyy年MM月dd日")</span><br />
        到：<span>@Model.To.ToString("yyyy年MM月dd日")</span>
    </div>
    @if (Model.Offer)
    {
        <div class="lead">
            可以带人体验<span>@totalDays 天</span>
            <a href="#" class="badge badge-success">@Model.KeyWords</a>
        </div> 
    }
    else
    {
         <div class="lead">
            求体验<span>@totalDays 天</span>
            <a href="#" class="badge badge-success">@Model.KeyWords</a>
        </div> 
    }
    <p>@Model.Description</p>
    <div>
        联系：<a href="/User/HomePage/@Model.Author.UserId">@Model.Author.NickName</a>@salutation
    </div>
</div>